package com.example.departmentService.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.departmentService.entity.PerformanceCount;
import com.example.departmentService.entity.dto.PageConditions;
import com.example.departmentService.service.IPerformanceService;
import com.example.departmentService.service.IProjectInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@Api(value = "/performance", tags = "绩效相关")
@RestController
@RequestMapping("/performance")
public class PerformanceController {

    @Autowired
    private IPerformanceService performanceService;

    @ApiOperation(value = "查询绩效", notes = "查询绩效")
    @PostMapping("/queryPerformance")
    @CrossOrigin(origins = "*")
    public Page<PerformanceCount> queryPerformance(@RequestBody PageConditions pageConditions) {
        return performanceService.queryPerformance(pageConditions);
    }
}
